<?php

namespace Part15_AbstractFactoryPattern\Code4;

class MysqlUser implements IUser
{
    public function insert($user)
    {
        echo '模拟在mysql中给user表增加一条记录' . "\n";
    }

    public function getUser($id)
    {
        echo '模拟在mysql中根据id查询user一条记录' . "\n";
    }
}